package org.dtrd.modules.ocr.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dtrd.modules.ocr.entity.bean.OcrMappingTableResultBean;
import org.dtrd.modules.ocr.entity.po.DtrdEntRdOcrMapping;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sun
 * @since 2022-09-06
 */
@Mapper
public interface OcrUpdateMapper extends BaseMapper<DtrdEntRdOcrMapping> {

    void updateOcrData(@Param("patientId") Integer patientId,
                       @Param("tableName") String tableName,
                       @Param("tableField") String tableField,
                       @Param("dataValue") String dataValue);

    List<OcrMappingTableResultBean> findFieldByTableName(@Param("tableName") String tableName);
}
